<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <script type="text/javascript">
        document.write("使用Javascript脚本语言循环输出hello world")
        for(var i=0;i<3;i++){
            document.write("<h1>hello world!</h1>")
        }
    </script>
</body>
</html>